<template>
	<view>
		<!-- 公告详情 -->
		<cus-navbar navbar :title="$t('index68')"></cus-navbar>
		
		<view class="main-padding">
			<view class="gap-30"></view>
			<view class="main-card">
				<view class="text-center mb-40">
					<view class="size-30 text-bold">{{notice.name}}</view>
					<view class="size-24 color-59 mt-20">{{notice.create_at}}</view>
				</view>
				<rich-text :nodes="notice.content"></rich-text>
			</view>
			<view class="gap-30"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				notice:{}
			}
		},
		onLoad(option) {
			this.loadData(option.id)
		},
		methods: {
			loadData(id){
				this.$api.post('/data/api.auth.invest/read',{
					notice_id: id
				})
				this.$api.post('/data/api.auth.invest/noticeDetail',{
					notice_id: id
				}).then(res=>{
					this.notice = res.notice
				})
			}
		}
	}
</script>

<style lang="scss">
.notice-title{
	width: 350rpx;
}
</style>